package com.huilian.iotbox.admin.wap.dao;

import com.huilian.iotbox.data.dto.CommodityStockRecordDto;
import com.huilian.iotbox.data.po.CommodityStockRecord;
import com.huilian.iotbox.data.vo.CommodityStockRecordVo;
import com.mysql.cj.log.Log;

import java.util.List;

/**
 * @author 龙 路 飞
 * @CreateDate: 2023-09-01 13:53
 * @Description:
 */
public interface CommodityStockRecordDao {
    /**
     * 根据条件查询
     */
    List<CommodityStockRecordVo> findCommodityStockRecordListByTime(CommodityStockRecordDto commodityStockRecordDto);

    /**
     * 根据条件查询SUM
     */
    CommodityStockRecordVo findCommodityStockRecordSumByTime(CommodityStockRecordDto commodityStockRecordDto);
    /**
     * 根据条件查询
     */
    List<CommodityStockRecordVo> findCommodityStockRecordList(CommodityStockRecordDto commodityStockRecordDto);

    Integer insert(CommodityStockRecord commodityStockRecord);

    List<CommodityStockRecordVo> findInventoryByUserId(CommodityStockRecordDto commodityStockRecordDto);

    List<CommodityStockRecordVo> findTakeStockOfOutOfStock(CommodityStockRecordDto commodityStockRecordDto);

    List<CommodityStockRecordVo> findStatsCommodityStockRecordList(CommodityStockRecordDto commodityStockRecordDto);

    Integer updateStatus(CommodityStockRecordDto commodityStockRecordDto);

    List<CommodityStockRecordVo> findAllById(Long id);;

    int add(CommodityStockRecordDto commodityStockRecordDto);

    CommodityStockRecordVo findCommodityStockRecordSumByDeviceNo(CommodityStockRecordDto commodityStockRecordDto);
}
